package cn.jiyun.controller;

import cn.jiyun.client.UserFeign;
import cn.jiyun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class ConsumerController {

    @Autowired
    private UserFeign userFeign;

    @RequestMapping(value="/consumer/getUserById")
    public User getUserById(Integer id){
        return userFeign.getUserById(id);
    }

    @RequestMapping(value="/test")
    public String test(){
        return "test";
    }

    public static void main(String[] args) {
        try {
            int i=1;
            return ;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            boolean b = 3 * 0.1 == 0.3;
            System.out.println( b);
        }

    }
}
